﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;

namespace SQT.tracnghiem.Ajax.ASP.Class
{
    public partial class remove_student : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int std_id = int.Parse(Request.QueryString["std_id"]);
            var get_std = new TblUserController().FetchAll().Where(x => x.UserId == std_id).Single();
            new TblUserController().Update(std_id,get_std.NumberStudy, get_std.UserName, get_std.UserPass, get_std.FullName, get_std.BirthDay, get_std.Phone, get_std.Avatar, get_std.Email,get_std.AddressMail, get_std.Address, get_std.Facebook, get_std.Sex, get_std.UserLevel, 0 , get_std.Active, get_std.SignInDate,get_std.Wallpaper, get_std.Note);
        }
    }
}